package com.whq.thrift.api.web.admin.db.requestlog;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

public class RequestLog implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private long id;
	private Date time;
	private String phone;
	private String mid;
	private String snda_id;
	private String ip;
	private String device_id;
	private String network;
	private String mac_address;
	private String flow_id;
	private String request_params;
	private int verify_code;
	private Date create_time;
	private String method;
	private String app_version;
	private int os_type;
	private String os_version;
	private String device_model;
	private String extend1;
	private String extend2;
	private String extend3;
	private String extend4;
	private String extend5;
	private Integer count;
	
	private Long cost;
	private String result_code;
	
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getSnda_id() {
		return snda_id;
	}
	public void setSnda_id(String snda_id) {
		this.snda_id = snda_id;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getDevice_id() {
		return device_id;
	}
	public void setDevice_id(String device_id) {
		this.device_id = device_id;
	}
	public String getNetwork() {
		return network;
	}
	public void setNetwork(String network) {
		this.network = network;
	}
	public String getMac_address() {
		return mac_address;
	}
	public void setMac_address(String mac_address) {
		this.mac_address = mac_address;
	}
	public String getFlow_id() {
		return flow_id;
	}
	public void setFlow_id(String flow_id) {
		this.flow_id = flow_id;
	}
	public String getRequest_params() {
		return request_params;
	}
	public void setRequest_params(String request_params) {
		this.request_params = request_params;
	}
	public int getVerify_code() {
		return verify_code;
	}
	public void setVerify_code(int verify_code) {
		this.verify_code = verify_code;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getApp_version() {
		return app_version;
	}
	public void setApp_version(String app_version) {
		this.app_version = app_version;
	}
	public int getOs_type() {
		return os_type;
	}
	public void setOs_type(int os_type) {
		this.os_type = os_type;
	}
	public String getOs_version() {
		return os_version;
	}
	public void setOs_version(String os_version) {
		this.os_version = os_version;
	}
	public String getDevice_model() {
		return device_model;
	}
	public void setDevice_model(String device_model) {
		this.device_model = device_model;
	}
	public String getExtend1() {
		return extend1;
	}
	public void setExtend1(String extend1) {
		this.extend1 = extend1;
	}
	public String getExtend2() {
		return extend2;
	}
	public void setExtend2(String extend2) {
		this.extend2 = extend2;
	}
	public String getExtend3() {
		return extend3;
	}
	public void setExtend3(String extend3) {
		this.extend3 = extend3;
	}
	public String getExtend4() {
		return extend4;
	}
	public void setExtend4(String extend4) {
		this.extend4 = extend4;
	}
	public String getExtend5() {
		return extend5;
	}
	public void setExtend5(String extend5) {
		this.extend5 = extend5;
	}
	
	public Long getCost() {
		return cost;
	}
	public void setCost(Long cost) {
		this.cost = cost;
	}
	public String getResult_code() {
		return result_code;
	}
	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}
	public int getTableSeq() {
		int ret = 100;
		
		Date t = null;
		if (this.time == null) {
			t = new Date();
		} else {
			t = time;
		}
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(t);
		return ret + calendar.get(Calendar.DAY_OF_MONTH);
	}
	
}
